// 根据角色ID查询菜单下拉树结构
import { axios } from "@/utils/request.ts";
import { IUserInfo } from "@/views/system/user/types.ts";

export function getUserInfo(id: number): Promise<IUserInfo> {
  return axios({
    url: `/system/user/${id}`,
    method: "get",
  });
}

// 查询部门下拉树结构
export function treeselect() {
  return axios({
    url: "/system/dept/treeselect",
    method: "get",
  });
}
